package org.intellij.doctree;

import org.intellij.doctree.node.*;

import javax.swing.tree.TreeModel;

public interface DocTreeComponent {

    public static final String POPUP_ACTION_GROUP = "DocTreeContextMenuGroup";
    public static final String TOOLBAR_ACTION_GROUP = "DocTreeToolbarGroup";

    TreeModel getTreeModel();

    void addFolder(FolderNode parent, Folder newFolder);

    void addDocument(FolderNode parent, Document newDocument);

    void updateNode(FolderNode originalNode, Folder folder);

    void updateNode(DocumentNode originalNode, Document document);

    void removeNode(DocTreeNode node);

    void moveNodeUp(DocTreeNode node);

    void moveNodeDown(DocTreeNode node);

}
